<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>管理首页- 商城管理系统</title>
	<meta name="description" content="overview &amp; stats" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link href="Public/Admin/css/bootstrap.min.css" rel="stylesheet" />
	<link href="Public/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="Public/Admin/css/font-awesome.min.css" />
	<link rel="stylesheet" href="Public/Admin/css/jquery-ui-1.10.3.custom.min.css" />
	<link rel="stylesheet" href="Public/Admin/css/jquery.gritter.css" />
	<link rel="stylesheet" href="Public/Admin/css/ace.min.css" />
	<link rel="stylesheet" href="Public/Admin/css/ace-responsive.min.css" />
	<link rel="stylesheet" href="Public/Admin/css/ace-skins.min.css" />
	<script src="Public/uploadify/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="Public/uploadify/jquery.uploadify.min.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" type="text/css" href="Public/uploadify/uploadify.css"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
<!--载入百度编辑器-->
	<script type="text/javascript" charset="utf-8" src="Public/Admin/ueditor1_4_3/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8" src="Public/Admin/ueditor1_4_3/ueditor.all.min.js"> </script>
	<script type="text/javascript" charset="utf-8" src="Public/Admin/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
	<!--ajax地址-->
	<script type="text/javascript">
		var tpyePath = "{{U('Goods/attr')}}";
	</script>
	
</head>
<body>
<div class="page-content">
	<div class="page-header position-relative">
		<h1>
			修改商品
		</h1>
	</div><!--/.page-header-->




	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->
			<form class="form-horizontal" action="" method="post" enctype="multipart/form-data" />
				<h3 style="padding-left: 30px;">基本信息</h3>
				<div class="base_info">
					
					<div class="control-group">
						<label class="control-label" for="form-field-1">商品名称</label>
						<div class="controls">
							<input type="text" name="gname" placeholder="请输入商品名称" value="{{$goodsData['gname']}}" />
						</div>
					</div>
					
					<div class="control-group">
						<label class="control-label" for="form-field-1">所属分类</label>
						<div class="controls">
							<select name="category_cid">
								<option value="-1">-请选择分类-</option>
								{{foreach from="$cateData" value="$v"}}
								<option value="{{$v['cid']}}" pid="{{$v['pid']}}" tid="{{$v['type_tid']}}" {{if value="$v['cid'] eq $goodsData['category_cid']"}}selected="selected"{{endif}} />{{$v['_name']}}</option>
								{{endforeach}}
							</select>
						</div>
						<script type="text/javascript">
							$(function(){
								$('[name=category_cid]').change(function(){
									alert('新分类将清空以前的数据！');
								})
							})
						</script>
					</div>
					
					<div class="control-group">
						<label class="control-label" for="form-field-1">所属品牌</label>
						<div class="controls">
							<select name="brand_bid">
								{{foreach from="$brandData" value="$v"}}
								<option value="{{$v['bid']}}" {{if value="$v['bid'] eq $goodsData['brand_bid']"}}selected="selected"{{endif}} />{{$v['bname']}}</option>
								{{endforeach}}
							</select>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="form-field-tags">计量单位</label>
						<div class="controls">
							<input type="text" name="unit" value="件" placeholder="输入计量单位" value="{{$goodsData['unit']}}" />
						</div>
					</div>
					
					<div class="control-group">
						<label class="control-label" for="form-field-1">市场价格</label>
						<div class="controls">
							<input type="text" name="mprice" value="{{$goodsData['mprice']}}" placeholder="请输入市场价" />
						</div>
					</div>
					
					<div class="control-group">
						<label class="control-label" for="form-field-1">商城价格</label>
						<div class="controls">
							<input type="text" name="sprice" value="{{$goodsData['sprice']}}" placeholder="请输入商城价" />
						</div>
					</div>
					
					<div class="control-group">
						<label class="control-label" for="form-field-1">点击次数</label>
						<div class="controls">
							<input type="text" name="click" value="{{$goodsData['click']}}" />
						</div>
					</div>
				</div>
				
				<h3 style="padding-left: 30px;">商品属性</h3>
				<div class="goods_attr">
					{{foreach from="$attr" value="$v"}}
					<div class="control-group">
						<label class="control-label" for="form-field-1">{{$v['atname']}}</label>
						<div class="controls">
							<select name="attr[{{$v['atid']}}][value][]">
								{{foreach from="$v['atvalue']" value="$vv"}}
								<option value="{{$vv}}" {{foreach from="$gattrData" value="$vvv"}}{{if value="$vv eq $vvv['gavalue']"}}selected="selected"{{endif}}{{endforeach}} >{{$vv}}</option>
								{{endforeach}}
							</select>
							<a href="javascript:;" class="del btn btn-small btn-danger">
					 		<i class="icon-minus"></i>删除规格
					 	</a>
						</div>
						
					</div>
					{{endforeach}}
				</div>
				
				
				
				<h3 style="padding-left: 30px;">商品规格</h3>
				<div>
					<table style="border: none;" class="control-group ">
						<div class="goods_spec">
							{{foreach from="$spec" key="$k" value="$v"}}
							
							{{foreach from="$gattrData" key="$kk" value="$vv"}}
							
							
							{{if value="$v['atid'] eq $vv['attribute_atid']"}}
							<?php static $num=0; ?>
							<div class="control-group">
								<label class="control-label" for="form-field-1">{{$v['atname']}}</label>
								<div style="margin-bottom:5px;" class="controls">
									<select name="spec[{{$vv['attribute_atid']}}][value][]">
										{{foreach from="$v['atvalue']" value = "$vvv" }}
										<option value="{{$vvv}}" {{if value="$vvv eq $vv['gavalue']"}}selected="selected"{{endif}} >{{$vvv}}</option>
										{{endforeach}}
									</select>
									 &nbsp;&nbsp;附加价值：
									 <input name="spec[{{$vv['attribute_atid']}}][price][]" id=""  type="text" value="{{$vv['addprice']}}">
									 	{{if value="$num eq 0"}}
									 	<a href="javascript:;" class="add btn btn-small btn-success">
									 		<i class="icon-plus"></i>添加规格
									 	</a>
									 	
									 	
									 	{{else}}
									 	<a href="javascript:;" class="del btn btn-small btn-danger">
									 		<i class="icon-minus"></i>删除规格
									 	</a>
									 	{{endif}}
								</div>
							</div>
							<?php $num++; ?>
							{{endif}}
							{{endforeach}}
							<?php $num=0?>
							
							{{endforeach}}
						</div>
					</table>
				</div>
				
				<h3 style="padding-left: 30px;">列表图片</h3>
				<div class="list_pic">
					<div class="control-group">
						<label class="control-label" for="form-field-1">列表图片</label>
						
						<div class="controls">
							<div lab="uploadFile">
								<script type="text/javascript">
									$(function(){
										$('#f').click(function(){
											var num = $('#listpic ul li').length;
											if (!num) {
												alert('请上传一张图片！');
												return false;
											}
										})
									})
								</script>
							    <input id="f" type="file" multiple="true">
							    <span>类型: *.jpg,*.png 大小: 2000KB 数量: 1</span>
							    <script type="text/javascript">
							        $(function() {
							            $('#f').uploadify({
							                'formData'     : {//POST数据
							                    '<?php echo session_name();?>' : '<?php echo session_id();?>',
							                },
							                'fileTypeDesc' : '上传文件',//上传描述
							                'fileTypeExts' : '*.jpg;*.png',
							                'swf'      : 'Public/uploadify/uploadify.swf',
							                'uploader' : '{{U('listpic')}}',
							                'buttonText':'选择文件',
							                'fileSizeLimit' : '2000KB',
							                'uploadLimit' : 1,//上传文件数
							                'width':65,
							                'height':25,
							                'successTimeout':10,//等待服务器响应时间
							                'removeTimeout' : 0.2,//成功显示时间
							                'onUploadSuccess' : function(file, data, response) {
												//转为json
							                    data=$.parseJSON(data);
							                    //获得图片地址
							                    var imageUrl = data.url;
							                    var li="<li style='list-style: none;margin-right: 5px;float:left;position: relative;' path='"+data.path+"' url='"+data.url+"'><img style='height:100px;' src='"+imageUrl+"'/><i class='icon-remove' style='color: red;font-size: 16px;position: absolute;right: 5px;top: 0px;cursor: pointer;display: none;'><input type='hidden' name='listpic' value='"+data.path+"'/></li>";
							                    $("#listpic ul").prepend(li);
							                }
							            });
							        });
							    </script>
							    <div id="listpic">
							        <ul>
										<li style='list-style: none;margin-right: 5px;float:left;position: relative;'>
											<img style="height: 100px;" src="{{$goodsData['listpic']}}"/>
											<i class="icon-remove" style="color: red;font-size: 16px;position: absolute;right: 5px;top: 0px;cursor: pointer;display: none;"></i>
											<input type="hidden" name="listpic" id="listpic" value="{{$goodsData['listpic']}}" />
										</li>
							        </ul>
							    </div>
							</div>
						</div>
					</div>
				</div>
				
				
				
				
				<h3 style="padding-left: 30px;">商品图片</h3>
				<div class="goods_pics">
					<div class="control-group">
						<label class="control-label" for="form-field-1">商品图片</label>
						<div class="controls">
							<div lab="uploadFile">
							    <input id="file" type="file" multiple="true">
							    <span>类型: *.jpg,*.png 大小: 2000KB 数量: 10</span>
							    <script type="text/javascript">
							        $(function() {
							            $('#file').uploadify({
							                'formData'     : {//POST数据
							                    '<?php echo session_name();?>' : '<?php echo session_id();?>',
							                },
							                'fileTypeDesc' : '上传文件',//上传描述
							                'fileTypeExts' : '*.jpg;*.png',
							                'swf'      : 'Public/uploadify/uploadify.swf',
							                'uploader' : '{{U('upload')}}',
							                'buttonText':'选择文件',
							                'fileSizeLimit' : '2000KB',
							                'uploadLimit' : 10,//上传文件数
							                'width':65,
							                'height':25,
							                'successTimeout':10,//等待服务器响应时间
							                'removeTimeout' : 0.2,//成功显示时间
							                'onUploadSuccess' : function(file, data, response) {
												//转为json
							                    data=$.parseJSON(data);
							                    //获得图片地址
							                    var imageUrl = data.url;
							                    var li="<li style='list-style: none;margin-right: 5px;float:left;position: relative;' path='"+data.path+"' url='"+data.url+"'><img style='height:50px;' src='"+imageUrl+"'/><i class='icon-remove' style='color: red;font-size: 16px;position: absolute;right: 5px;top: 0px;cursor: pointer;display: none;'></i><input type='hidden' name='thumb[]' value='"+data.path+"'/></li>";
							                    $("#uploadList ul").prepend(li);
							                }
							            });
							        });
							    </script>
							    <div id="uploadList">
							        <ul>
							        	{{foreach from="$gdData['medium']" value="$v"}}
										<li style="list-style: none;margin-right: 5px;float:left;position: relative;" >
											<img style="height:50px;" src="{{$v}}">
											<i class="icon-remove" style="color: red;font-size: 16px;position: absolute;right: 5px;top: 0px;cursor: pointer;display: none;"></i>
											<input name="thumb[]" value="{{$v}}" type="hidden">
										</li>
										{{endforeach}}
							        </ul>
							    </div>
							</div>
						</div>
					</div>
				</div>
				
				<!--异步删除照片-->
				<script type="text/javascript">
					$(function(){
						$("ul li").live('mouseover',function(){
	    					$(this).find('i').css({display:'block'})
				    	})
						$("ul li").live('mouseout',function(){
	    					$(this).find('i').css({display:'none'})
			    		})
						$("ul li i").live('click',function(){
			    			if (confirm('确定删除这张图片？')) {
			    				var path = $(this).parents('li').attr('path');
			    				var gid = $("#gid").val();
			    				if (!path) {
			    					path = $(this).parents('li').find('img').attr('src');
			    				}
			    				$(this).parents('li').remove();
			    				$.ajax({
			    					type:"post",
			    					url:"{{U('Goods/ajaxdel')}}",
			    					data:{path:path,gid:gid},
			    					dataType:'json',
			    					success:function(phpData){
					    				
					    			}
			    				});
			    			}
			    		})
			    	})
				</script>
				
				
				
				
				
				
				
				
				<div class="control-group">
					<label class="control-label" for="form-field-1">商品详情</label>
					<div class="controls">
				    	<!--调用百度编辑器-->
						<script id="editor" type="text/plain" style="width:100%;height:500px;" name="content">{{$gdData['content']}}</script>
					    <script>
					        var ue = UE.getEditor('editor');
					    </script>
					</div>
				</div>
				
				
				
				<div class="space-4"></div>
				<!--隐藏域保存商品id-->
				<input type="hidden" name="gid" id="gid" value="{{Q('get.gid',0,'intval')}}" />
				<div class="control-group">
					<label class="control-label" for="form-field-tags"></label>
					<div class="controls">
						<button class="btn btn-success btn-small" type="submit">
							<i class="icon-ok bigger-110"></i>
							添加商品
						</button>

						&nbsp; &nbsp; &nbsp;
						<button class="btn btn-default btn-small" type="reset">
							<i class="icon-undo bigger-110"></i>
							取消添加
						</button>
					</div>
				</div>
			</form>
		</div><!--/.span-->
	</div><!--/.row-fluid-->
</div>
		<!--basic scripts-->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='Public/Admin/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!--<![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='Public/Admin/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='Public/Admin/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="Public/Admin/js/bootstrap.min.js"></script>
		<script src="Public/Admin/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="Public/Admin/js/jquery.ui.touch-punch.min.js"></script>
		<script src="Public/Admin/js/bootbox.min.js"></script>
		<script src="Public/Admin/js/jquery.easy-pie-chart.min.js"></script>
		<script src="Public/Admin/js/jquery.gritter.min.js"></script>
		<script src="Public/Admin/js/spin.min.js"></script>
		<!--ace scripts-->

		<script src="Public/Admin/js/ace-elements.min.js"></script>
		<script src="Public/Admin/js/ace.min.js"></script>

		<!--inline scripts related to this page-->

		<script type="text/javascript">
			$(function() {
			
				$('#accordion2').on('hide', function (e) {
					$(e.target).prev().children(0).addClass('collapsed');
				})
				$('#accordion2').on('hidden', function (e) {
					$(e.target).prev().children(0).addClass('collapsed');
				})
				$('#accordion2').on('show', function (e) {
					$(e.target).prev().children(0).removeClass('collapsed');
				})
				$('#accordion2').on('shown', function (e) {
					$(e.target).prev().children(0).removeClass('collapsed');
				})
			
			
				var oldie = /msie\s*(8|7|6)/.test(navigator.userAgent.toLowerCase());
				$('.easy-pie-chart.percentage').each(function(){
					$(this).easyPieChart({
						barColor: $(this).data('color'),
						trackColor: '#EEEEEE',
						scaleColor: false,
						lineCap: 'butt',
						lineWidth: 8,
						animate: oldie ? false : 1000,
						size:75
					}).css('color', $(this).data('color'));
				});
			
				$('[data-rel=tooltip]').tooltip();
				$('[data-rel=popover]').popover({html:true});
			
			
				$('#gritter-regular').on(ace.click_event, function(){
					$.gritter.add({
						title: 'This is a regular notice!',
						text: 'This will fade out after a certain amount of time. Vivamus eget tincidunt velit. Cum sociis natoque penatibus et <a href="#" class="blue">magnis dis parturient</a> montes, nascetur ridiculus mus.',
						image: $Public/Admin+'/avatars/avatar1.png',
						sticky: false,
						time: '',
						class_name: (!$('#gritter-light').get(0).checked ? 'gritter-light' : '')
					});
			
					return false;
				});
			
				$('#gritter-sticky').on(ace.click_event, function(){
					var unique_id = $.gritter.add({
						title: 'This is a sticky notice!',
						text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eget tincidunt velit. Cum sociis natoque penatibus et <a href="#" class="red">magnis dis parturient</a> montes, nascetur ridiculus mus.',
						image: $Public/Admin+'/avatars/avatar.png',
						sticky: true,
						time: '',
						class_name: 'gritter-info' + (!$('#gritter-light').get(0).checked ? ' gritter-light' : '')
					});
			
					return false;
				});
			
			
				$('#gritter-without-image').on(ace.click_event, function(){
					$.gritter.add({
						// (string | mandatory) the heading of the notification
						title: 'This is a notice without an image!',
						// (string | mandatory) the text inside the notification
						text: 'This will fade out after a certain amount of time. Vivamus eget tincidunt velit. Cum sociis natoque penatibus et <a href="#" class="orange">magnis dis parturient</a> montes, nascetur ridiculus mus.',
						class_name: 'gritter-success' + (!$('#gritter-light').get(0).checked ? ' gritter-light' : '')
					});
			
					return false;
				});
			
			
				$('#gritter-max3').on(ace.click_event, function(){
					$.gritter.add({
						title: 'This is a notice with a max of 3 on screen at one time!',
						text: 'This will fade out after a certain amount of time. Vivamus eget tincidunt velit. Cum sociis natoque penatibus et <a href="#" class="green">magnis dis parturient</a> montes, nascetur ridiculus mus.',
						image: $Public/Admin+'/avatars/avatar3.png',
						sticky: false,
						before_open: function(){
							if($('.gritter-item-wrapper').length >= 3)
							{
								return false;
							}
						},
						class_name: 'gritter-warning' + (!$('#gritter-light').get(0).checked ? ' gritter-light' : '')
					});
			
					return false;
				});
			
			
				$('#gritter-center').on(ace.click_event, function(){
					$.gritter.add({
						title: 'This is a centered notification',
						text: 'Just add a "gritter-center" class_name to your $.gritter.add or globally to $.gritter.options.class_name',
						class_name: 'gritter-info gritter-center' + (!$('#gritter-light').get(0).checked ? ' gritter-light' : '')
					});
			
					return false;
				});
				
				$('#gritter-error').on(ace.click_event, function(){
					$.gritter.add({
						title: 'This is a warning notification',
						text: 'Just add a "gritter-light" class_name to your $.gritter.add or globally to $.gritter.options.class_name',
						class_name: 'gritter-error' + (!$('#gritter-light').get(0).checked ? ' gritter-light' : '')
					});
			
					return false;
				});
					
			
				$("#gritter-remove").on(ace.click_event, function(){
					$.gritter.removeAll();
					return false;
				});
					
			
				///////
			
			
				$("#bootbox-regular").on(ace.click_event, function() {
					bootbox.prompt("What is your name?", function(result) {
						if (result === null) {
							//Example.show("Prompt dismissed");
						} else {
							//Example.show("Hi <b>"+result+"</b>");
						}
					});
				});
					
				$("#bootbox-confirm").on(ace.click_event, function() {
					bootbox.confirm("Are you sure?", function(result) {
						if(result) {
							bootbox.alert("You are sure!");
						}
					});
				});
					
				$("#bootbox-options").on(ace.click_event, function() {
					bootbox.dialog("I am a custom dialog with smaller buttons", [{
						"label" : "Success!",
						"class" : "btn-small btn-success",
						"callback": function() {
							//Example.show("great success");
						}
						}, {
						"label" : "Danger!",
						"class" : "btn-small btn-danger",
						"callback": function() {
							//Example.show("uh oh, look out!");
						}
						}, {
						"label" : "Click ME!",
						"class" : "btn-small btn-primary",
						"callback": function() {
							//Example.show("Primary button");
						}
						}, {
						"label" : "Just a button...",
						"class" : "btn-small"
						}]
					);
				});
			
			
			
				$('#spinner-opts small').css({display:'inline-block', width:'60px'})
			
				var slide_styles = ['', 'green','red','purple','orange', 'dark'];
				var ii = 0;
				$("#spinner-opts input[type=text]").each(function() {
					var $this = $(this);
					$this.hide().after('<span />');
					$this.next().addClass('ui-slider-small').
					addClass("inline ui-slider-"+slide_styles[ii++ % slide_styles.length]).
					css({'width':'125px'}).slider({
						value:parseInt($this.val()),
						range: "min",
						animate:true,
						min: parseInt($this.data('min')),
						max: parseInt($this.data('max')),
						step: parseFloat($this.data('step')),
						slide: function( event, ui ) {
							$this.attr('value', ui.value);
							spinner_update();
						}
					});
				});
			
			
			
			
			
				$.fn.spin = function(opts) {
					this.each(function() {
					  var $this = $(this),
						  data = $this.data();
			
					  if (data.spinner) {
						data.spinner.stop();
						delete data.spinner;
					  }
					  if (opts !== false) {
						data.spinner = new Spinner($.extend({color: $this.css('color')}, opts)).spin(this);
					  }
					});
					return this;
				};
			
				function spinner_update() {
					var opts = {};
					$('#spinner-opts input[type=text]').each(function() {
						opts[this.name] = parseFloat(this.value);
					});
					$('#spinner-preview').spin(opts);
				}
			
			
			
				$('#id-pills-stacked').removeAttr('checked').on('click', function(){
					$('.nav-pills').toggleClass('nav-stacked');
				});
				$('#id-input-file-1 , #id-input-file-2').ace_file_input({
					no_file:'No File ...',
					btn_choose:'Choose',
					btn_change:'Change',
					droppable:false,
					onchange:null,
					thumbnail:false //| true | large
					//whitelist:'gif|png|jpg|jpeg'
					//blacklist:'exe|php'
					//onchange:''
					//
				});
				
				$('#id-input-file-3').ace_file_input({
					style:'well',
					btn_choose:'拖拽图片到此处或者单击上传图片',
					btn_change:null,
					no_icon:'icon-picture',
					droppable:true,
					thumbnail:'small'
					//,icon_remove:null//set null, to hide remove/reset button
					/**,before_change:function(files, dropped) {
						//Check an example below
						//or examples/file-upload.html
						return true;
					}*/
					/**,before_remove : function() {
						return true;
					}*/
					,
					preview_error : function(filename, error_code) {
						//name of the file that failed
						//error_code values
						//1 = 'FILE_LOAD_FAILED',
						//2 = 'IMAGE_LOAD_FAILED',
						//3 = 'THUMBNAIL_FAILED'
						//alert(error_code);
					}
			
				}).on('change', function(){
					//console.log($(this).data('ace_input_files'));
					//console.log($(this).data('ace_input_method'));
				});
				
			
				//dynamically change allowed formats by changing before_change callback function
				$('#id-file-format').removeAttr('checked').on('change', function() {
					var before_change
					var btn_choose
					var no_icon
					if(this.checked) {
						btn_choose = "拖拽图片到此处或者单击上传图片";
						no_icon = "icon-picture";
						before_change = function(files, dropped) {
							var allowed_files = [];
							for(var i = 0 ; i < files.length; i++) {
								var file = files[i];
								if(typeof file === "string") {
									//IE8 and browsers that don't support File Object
									if(! (/\.(jpe?g|png|gif|bmp)$/i).test(file) ) return false;
								}
								else {
									var type = $.trim(file.type);
									if( ( type.length > 0 && ! (/^image\/(jpe?g|png|gif|bmp)$/i).test(type) )
											|| ( type.length == 0 && ! (/\.(jpe?g|png|gif|bmp)$/i).test(file.name) )//for android's default browser which gives an empty string for file.type
										) continue;//not an image so don't keep this file
								}
								
								allowed_files.push(file);
							}
							if(allowed_files.length == 0) return false;
			
							return allowed_files;
						}
					}
					else {
						btn_choose = "拖拽图片到此处或者单击上传图片";
						no_icon = "icon-cloud-upload";
						before_change = function(files, dropped) {
							return files;
						}
					}
					var file_input = $('#id-input-file-3');
					file_input.ace_file_input('update_settings', {'before_change':before_change, 'btn_choose': btn_choose, 'no_icon':no_icon})
					file_input.ace_file_input('reset_input');
				});
			
			});
		</script>
		<script src="Public/Admin/js.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>